import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from 'store/index.js'

import { get, post } from './config/request.js'
Vue.prototype.$api = {
	get,
	post
};

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { get, post } from './config/request.js'
export function createApp() {
  const app = createSSRApp(App)
  
  app.config.globalProperties.$api = {
	get,
  	post
  }
  
  return {
    app
  }
}
// #endif